<template>
    <div>
        <button class="cz">提交</button>
    </div>
</template>

<!-- <template>
    <div>
        <el-button text @click="open" class="cz">充值</el-button>
    </div>
</template>

<script setup>
import { ElMessage, ElMessageBox } from 'element-plus'
import { ref } from "vue"

const open = () => {

ElMessageBox.prompt('Please input your e-mail', 'Tip', {
    confirmButtonText: '确认',
    cancelButtonText: '取消',
    inputPattern:
        /^[1-9]\d*$/,
    inputErrorMessage: 'Invalid Email',
})
    .then(({ value }) => {
        ElMessage({
            type: 'success',
            message: `您已成功充值:${value}元`,
        })
        let cz = () => {
            ye = parseInt(ye.value) + parseInt(`${value}`)
            console.log(111, ye)
        }
        cz()
    })
    .catch(() => {
        ElMessage({
            type: 'info',
            message: '已取消充值',
        })
    })
}

</script> -->